package com.gs.core.domain;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue(value="LOGIN")
public class LoginAction extends Action{
	String loggedInBy;
	String sourceType;
	
	private LoginAction(String loggedInBy, String sourceType){
		this.loggedInBy = loggedInBy;
		this.sourceType = sourceType;
	}
	
	public static LoginAction create(String loggedInBy, String sourceType){
		return new LoginAction(loggedInBy, sourceType);
	}
	
	@Column(name="LOGGED_IN_BY")
	public String getLoggedInBy() {
		return loggedInBy;
	}
	public void setLoggedInBy(String loggedInBy) {
		this.loggedInBy = loggedInBy;
	}
	@Column(name="SOURCE_TYPE")
	public String getSourceType() {
		return sourceType;
	}
	public void setSourceType(String sourceType) {
		this.sourceType = sourceType;
	}
	
}
